<p id="notice"><%= notice %></p>

<h2>  <%= @seller.name %> </h2>
<input type='hidden' id="seller_id" value="<%= @seller.id %>">
<h3>  Current Balance : <%= @seller.current_balance() %></h3>
<h3>  Opening Balance :<span id='initial_balance'> <%= @seller.initial_balance %></span></h3>

<% @holder = @seller%>
<% @credit_transactions=Transaction.find_all_by_giver_type_and_giver_id(@seller.class.name,@seller.id) %>
<% @debit_transactions=Transaction.find_all_by_receiver_type_and_receiver_id(@seller.class.name, @seller.id) %>
<%= render(:partial=>'transactions/form') %>
<script>
   setCreateTransactionType("Owner","1","Seller",$('#seller_id').val());
</script>
<%= render(:partial=>'transactions/list') %>
